package com.cloudkinto.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 * @author hua
 * @since 2024-11-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_order_return_product")
public class OrderReturnProductDo extends Model<OrderReturnProductDo> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("return_id")
    private Long returnId;

    @TableField("product_id")
    private Long productId;
    /**
     * 总数
     */
    @TableField("delivery_qty")
    private Integer deliveryQty;

    /**
     * 已收
     */
//    @TableField("receive_qty")
//    private Integer receiveQty;

    /**
     * 已收正品
     */
    @TableField("receive_good_qty")
    private Integer receiveGoodQty;

    /**
     * 已收次品
     */
    @TableField("receive_bad_qty")
    private Integer receiveBadQty;


    /**
     * 已上架正品
     */
    @TableField("putaway_good_qty")
    private Integer putawayGoodQty;

    /**
     * 已上架正品
     */
    @TableField("putaway_bad_qty")
    private Integer putawayBadQty;



    @TableField("tips")
    private String tips;

    @TableField("file_id")
    private Long fileId;

    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_by")
    private Long createBy;

    @TableField("delete_time")
    private Date deleteTime;

    @TableField("delete_by")
    private Long deleteBy;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
